
public class NestedClassTest {
	
	public static void main(String[] args){
		outerClass c = new outerClass();
		outerClass.Inner1 i1 = c.new Inner1();
		
		outerClass.Inner2 i2 = new outerClass.Inner2();
	}
}

class outerClass{
	public String key;
	public class Inner1{
			public void methodA(){
				System.out.println(key);
			}
	}
	
	public static class Inner2{
		public void methodB(){
			//System.out.println(key);
		}
	}

}


	
